package com.chunfeng.mypen.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chunfeng.mypen.entity.Exam;
import com.chunfeng.mypen.vo.ExamVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 试卷Dao接口
 * @author: 小雷
 * @createTime: 2023-11-14 00:01:36
 */
@Mapper
public interface ExamDao extends BaseMapper<Exam> {
    //查询所有试卷
    List<ExamVo> lookExam(@Param("exam") Exam exam);

    //根据ids查询试卷总数
    int selectCountByIds(@Param("ids") List<String> ids);

    //根据学科id修改试卷学科
    void updateExamBySubjectId(@Param("ids") List<String> ids);
}
